cmake_minimum_required(VERSION 3.16)
project(TCPDelay)

set(CMAKE_CXX_STANDARD 11)

#添加头文件搜索路径
include_directories(C:\\Software\\MinGW\\include)

#添加库文件搜索路径
link_directories(C:\\Software\\MinGW\\lib)

add_executable(TCPDelay main.cpp)

add_executable(CascadeParallel CascadeParallel.cpp)

add_executable(QueryPerformanceCounter QueryPerformanceCounter.cpp)

add_executable(PerformanceCounterParallel PerformanceCounterParallel.cpp)

add_executable(server server.cpp)

add_executable(client client.cpp)

target_link_libraries(TCPDelay boost_thread boost_system)

target_link_libraries(QueryPerformanceCounter boost_thread boost_system)

target_link_libraries(server ws2_32)

target_link_libraries(client ws2_32)